package com.jack.lib.net.loading

import com.jack.lib.core.net.JNetView
import com.jack.lib.core.net.NetLoadingMode

/**
 * author : chong.huang
* create : 2/14/21
 * desc   :
 */
abstract class Loading {

    companion object {
        fun obtain(loadingMode: NetLoadingMode, view: JNetView): Loading =
            CommonLoading(loadingMode, view)
    }

    abstract fun create()

    abstract fun cancel()
}